Skip to content

Conversation

@gziolo
Copy link
Member

@gziolo gziolo commented Nov 6, 2025

This PR copies all the recent changes applied in WordPress core in preparation for the 6.9 beta 3 / rc 1 releases.

Related commits:

@gziolo gziolo self-assigned this Nov 6, 2025
@github-actions
Copy link

github-actions bot commented Nov 6, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: gziolo <[email protected]>
Co-authored-by: justlevine <[email protected]>
Co-authored-by: jonathanbossenger <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@codecov
Copy link

codecov bot commented Nov 6, 2025

Codecov Report

❌ Patch coverage is 42.85714% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.39%. Comparing base (e309018) to head (262108c).
⚠️ Report is 1 commits behind head on trunk.

Files with missing lines Patch % Lines
includes/abilities-api/class-wp-ability.php 25.00% 3 Missing ⚠️
...ities-api/class-wp-ability-categories-registry.php 0.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##              trunk     #137       +/-   ##
=============================================
- Coverage     90.47%   80.39%   -10.09%     
- Complexity      177      178        +1     
=============================================
  Files            20       20               
  Lines          1470     1474        +4     
  Branches        120      120               
=============================================
- Hits           1330     1185      -145     
- Misses          140      289      +149     
Flag Coverage Δ
javascript 94.31% <ø> (ø)
unit 76.31% <42.85%> (-13.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gziolo gziolo added [Type] Enhancement New feature or request [Type] Bug Something isn't working and removed [Type] Enhancement New feature or request labels Nov 6, 2025
* @return bool|WP_Error Whether the ability has the necessary permission.
*/
public function check_permissions( $input = null ) {
if ( ! is_callable( $this->permission_callback ) ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this redundant/contrary to the behavior in ::prepare_properties()?

( I see this was added in https://github.com/WordPress/wordpress-develop/pull/10431/files, but I can't find the discussion that prompted it. )

IMO the fatal error thrown from ::invoke_callback() is desired behavior, instead of hiding it inside a WP_Error. This error can only happen if a user is extending this class and overloading both the ::$permission_callback property type and either ::prepare_properties() or the constructor to avoid calling ::prepare_proerties() altogether, so the immediacy provides better DX.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be redundant, but it doesn't break anything. Feel free to open a patch against WordPress trunk proposing the removal of both checks. There is still time to adjust that logic before the final release.

As for this PR, as noted in the description, the code is copied from WordPress core as is, without modifications.

@gziolo gziolo mentioned this pull request Nov 7, 2025
@gziolo gziolo requested a review from a team November 7, 2025 11:13
Copy link
Contributor

@jonathanbossenger jonathanbossenger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the inline documentation side, looks good to me

@gziolo gziolo merged commit f514ac1 into trunk Nov 7, 2025
24 of 27 checks passed
@gziolo gziolo deleted the update/wp-6.9-beta3-sync branch November 7, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants